<?php

namespace app\api\model\event;
use app\api\model\BaseModel;
use LinCmsTp5\admin\model\LinUser;

class Account extends BaseModel
{
    protected $table = 'account';
    protected $deleteTime = 'delete_time';
    protected $autoWriteTimestamp = 'datetime';

//    public function platform(){
//        return $this->hasOne(Platform::class,'id','platform_id');
//    }

    public function User(){
        return $this->hasOne(LinUser::class,'id','uid')->bind(['username']);
    }
}
